<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/29
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="js/jquery_1.12.4.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("input").click(
                function () {
                    var time =new Date();
                    $("#img").attr("src","/DrawImage?createTypeFlag=n&time="+time.getTime());
                }
            );
        });
    </script>
</head>
<body>
 <img src="" id="img">
 <input type="button" value="点击获取">
</body>
</html>